package com.colorfruit.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * 业务描述：
 *
 * @Auther: chenjiayuan
 * @Date: create in 2018/7/3 21
 * @Description:
 */
@SpringBootApplication
@EnableTransactionManagement
@ServletComponentScan
@EnableWebMvc
@EnableAsync
@EnableScheduling
@EnableEurekaClient
@EnableDiscoveryClient
@ComponentScan({"com.colorfruit.admin", "com.colorfruit.framework.redis"})
public class AdminApplicationRunner extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplicationRunner.class, args);
    }
}
